add_circt_conversion_library(CIRCTCalyxToFSM
  CalyxToFSM.cpp
  MaterializeFSM.cpp
  RemoveGroupsFromFSM.cpp

  ADDITIONAL_HEADER_DIRS
  ${MLIR_MAIN_INCLUDE_DIR}/mlir/Conversion/CalyxToFSM

  DEPENDS
  CIRCTConversionPassIncGen

  LINK_COMPONENTS
  Core

  LINK_LIBS PUBLIC
  CIRCTCalyx
  CIRCTFSM
  MLIRIR
  MLIRPass
  MLIRSupport
  MLIRTransforms
)
